package ru.cybertek.domain;

/**
 * @author Dmitry Demyankov
 * @version $Revision: 53 $
 * 
 *         (C) Copyright 2009 CyberTek Ltd. All rights reserved.
 */
public class Company extends StoredEntity
{
    private String fullName;

    private String shortName;

    private CompanyFinancialDetails financialDetails;

    private ContactInformation contactInformation;

    public Company() {}
    
    public Company(Integer id)
    {
    	super.setId(id);
    }

    /**
     * Getter for property fullName.
     * 
     * @return the fullName
     */
    public String getFullName()
    {
        return fullName;
    }

    /**
     * Setter for property fullName.
     * 
     * @param fullName
     *            the fullName to set
     */
    public void setFullName(String fullName)
    {
        this.fullName = fullName;
    }

    /**
     * Getter for property shortName.
     * 
     * @return the shortName
     */
    public String getShortName()
    {
        return shortName;
    }

    /**
     * Setter for property shortName.
     * 
     * @param shortName
     *            the shortName to set
     */
    public void setShortName(String shortName)
    {
        this.shortName = shortName;
    }

    /**
     * Getter for property financialDetails.
     * 
     * @return the financialDetails
     */
    public CompanyFinancialDetails getFinancialDetails()
    {
        return financialDetails;
    }

    /**
     * Setter for property financialDetails.
     * 
     * @param financialDetails
     *            the financialDetails to set
     */
    public void setFinancialDetails(CompanyFinancialDetails financialDetails)
    {
        this.financialDetails = financialDetails;
    }

    /**
     * Getter for property contactInformation.
     * 
     * @return the contactInformation
     */
    public ContactInformation getContactInformation()
    {
        return contactInformation;
    }

    /**
     * Setter for property contactInformation.
     * 
     * @param contactInformation
     *            the contactInformation to set
     */
    public void setContactInformation(ContactInformation contactInformation)
    {
        this.contactInformation = contactInformation;
    }
    
    public String toString()
    {
    	return shortName;
    }
    
    /**
     * Getter for label of the company in one string. Same as method toString()
     * 
     * @return String - label of the company
     */
    public String getLabel()
    {
    	return this.toString();
    }
}
